#!/usr/bin/env python3
# -*- coding: utf-8 -*-

__autho__ = "Tony.Don"
__lastupdatetime__ = "2017/09/21"

'''
class \r\n
    core.Enum.Enum\r\n
description\r\n
    枚举\r\n
example\r\n
    __event__ = Enum(["S_TAG","E_TAG","DATA","COMMENT","ENTITYREF","CHARREF","DECL"])\r\n
'''
class Enum(set):
    def __getattr__(self,name):
        if name.upper() in self:
            return name.upper()
        raise AttributeError